package com.company;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by asus on 2018/7/17.
 */
public class CalendarTest {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        int currentYear = calendar.get(Calendar.YEAR);
        calendar.clear();
        calendar.set(Calendar.YEAR, currentYear);
        System.out.println(calendar.getTime());
    }
}
